let BASEURL = ''
let DOWNLOAD_URL = ''
let UPLOAD_URL = ''

const TIMEOUT = 1000 * 30

if (process.env.NODE_ENV === 'development') {
	// #ifdef H5 || MP-WEIXIN
	BASEURL = '/apidev'
	// #endif
	// #ifdef APP-PLUS
	BASEURL = 'https://www.liebaofb.com'
	// #endif

	DOWNLOAD_URL = ''
	UPLOAD_URL = `${BASEURL}file/uploadOss`
} else {
	// #ifdef H5 || MP-WEIXIN
	BASEURL = `${window.location.origin}`
	DOWNLOAD_URL = ''
	UPLOAD_URL = `${BASEURL}file/uploadOss`
	// #endif
	// #ifdef APP-PLUS
	BASEURL = 'https://www.liebaofb.com'
	DOWNLOAD_URL = ''
	UPLOAD_URL = `${BASEURL}file/uploadOss`
	// #endif
}

export {
	BASEURL,
	DOWNLOAD_URL,
	UPLOAD_URL,
	TIMEOUT
}